//
//  JWTUserChargeMemberView.m
//  JWT
//
//  Created by ndm on 17/2/12.
//  Copyright © 2017年 com.jwtsoft. All rights reserved.
//

#import "JWTUserChargeMemberViewController.h"
#import "JWTUserMemberView.h"


@interface JWTUserChargeMemberViewController ()

@property (nonatomic,strong) JWTUserMemberView *userMemberView;

@end

@implementation JWTUserChargeMemberViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self initWithNavTitle:@"我的会员卡"];
    
    [self initWithUserMemberView];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    _userMemberView.vipTypeLabel.text = APPDELEGATE.userInfo.cardname;
}

-(void) initWithUserMemberView{
    _userMemberView = [[JWTUserMemberView alloc] initWithFrame:CGRectMake(self.view.left, self.view.top, UISCREEN_WIDTH, UISCREEN_HEIGHT - getNAVI_TOP_HEIGHT())];
    [self.view addSubview:_userMemberView];
    
    _userMemberView.vipTypeLabel.text = APPDELEGATE.userInfo.cardname;
}

@end
